This example shows how to get the PDF document as byte array which is loaded in the SfPdfViewer. In this example, GetDocumentAsync() method is used to get the PDF document as byte array.
Documentation: https://blazor.syncfusion.com/documentation/pdfviewer-2/how-to/get-data-from-pdf-viewer
To run this application, you need Visual Studio 2019 or later versions.
To debug while running the application, press F5 or select Debug > Start Debugging. To run the sample without debugging, press Ctrl+F5 or selectDebug > Start Without Debugging.